<?php
class Application_Form_Element_MaterielSelect extends Zend_Form_Element_Select {
	public function init() {
		$MaterielTb = new Application_Model_DbTable_Materiels();
		$reseauTb= new Application_Model_DbTable_Reseaux();
		$this->addMultiOption(0, 'Selectionnez...');
		//       	$materielList = $MaterielTb->getMaterielList();
		//      	$this->addMultiOptions( $materielList);
		//

		foreach ($MaterielTb->listOnServiceMateriel() as $materiel) {
			$this->addMultiOption($materiel['id'], $materiel['nom']." (".$materiel['raccourciReseau'].$materiel['numeroPoste'].")");
		}
		


	}
}